import { BasicFetchResult } from '../../model/baseModel';
import { defHttp } from '@/utils/http/axios';
const Api = '/sysOnlineUser';
/**
 * 查询在线用户
 * @author frank
 * @date 2023-01-06 10:38:36
 */
export const getPage = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: Api + '/page', params });
/**
 * 剔除在线用户
 * @author frank
 * @date 2023-01-06 10:38:36
 */
export const delSession = (sessionId: string) =>
  defHttp.post<BasicFetchResult<any>>({ url: Api + '/forceExist', params: { sessionId } });
